//
//  ViewControllerE.m
//  PresentViewContorller
//
//  Created by Justsoso on 16/2/24.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewControllerE.h"

@interface ViewControllerE ()

@end

@implementation ViewControllerE

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = [UIColor colorWithRed:arc4random()%255/255.0 green:arc4random()%255/255.0 blue:arc4random()%255/255.0 alpha:1];
}

- (IBAction)cancelBtnPressed:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)popEBtnPressed:(id)sender
{
    ViewControllerE *vcE = [[ViewControllerE alloc] init];
    
    vcE.modalPresentationStyle = UIModalPresentationFullScreen;
    vcE.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    
    [self presentViewController:vcE animated:YES completion:nil];
}

@end
